package com.fwj.user.entity.rbac.menu;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.time.LocalDateTime;

/**
 * @Author: fwj
 * @Data: 2022/5/1 17:13
 * @Version 1.0
 * @Description:
 */

@ApiModel(value="com.fwj.auth.entity.rbac.menu.RBACRelationAuthAndMenu")
@Data
@Table(name = "rbac_relation_auth_menu")
public class RBACRelationAuthAndMenu {

    /**
     * 权限-菜单关系表主键
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "JDBC")
    @ApiModelProperty(value="主键")
    private Long id;

    /**
     * 权限ID
     */
    @ApiModelProperty(value="用户ID")
    @Column(name = "user_id")
    private Long userId;

    /**
     * 菜单ID
     */
    @ApiModelProperty(value="角色ID")
    @Column(name = "role_id")
    private Long roleId;

    /**
     * 执行操作人
     */
    @ApiModelProperty(value="执行操作人")
    @Column(name = "creator")
    private Long creator;

    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    @Column(name = "create_time")
    @Temporal(TemporalType.TIMESTAMP)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    @Column(name = "update_time")
    @Temporal(TemporalType.TIMESTAMP)
    private LocalDateTime updateTime;

    /**
     * 绑定状态
     */
    @ApiModelProperty(value="绑定状态")
    @Column(name = "status")
    private String status;

    private static final long serialVersionUID = 1L;
}
